/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2021-12-10 16:45:22
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-23 15:00:36
 */
import request from '@/utils/request'

// 查询资质类型列表
export function listQualificationType(query) {
  return request({
    url: '/qualification/qualificationType/list',
    method: 'get',
    params: query
  })
}

export function qualTreeselect(query) {
  return request({
    url: '/qualification/qualificationType/treeselect',
    method: 'get',
    params: query
  })
}

// 查询资质类型详细
export function getQualificationType(id) {
  return request({
    url: '/qualification/qualificationType/' + id,
    method: 'get'
  })
}

// 新增资质类型
export function addQualificationType(data) {
  return request({
    url: '/qualification/qualificationType',
    method: 'post',
    data: data
  })
}

// 修改资质类型
export function updateQualificationType(data) {
  return request({
    url: '/qualification/qualificationType',
    method: 'put',
    data: data
  })
}

// 删除资质类型
export function delQualificationType(id) {
  return request({
    url: '/qualification/qualificationType/' + id,
    method: 'delete'
  })
}

// 导出资质类型
export function exportQualificationType(query) {
  return request({
    url: '/qualification/qualificationType/export',
    method: 'get',
    params: query
  })
}

export function sortQualificationType(data) {
  return request({
    url: '/qualification/qualificationType/sort',
    method: 'put',
    data: data
  })
}

// 导入
export const importType = data => {
  return request({
    method: 'post',
    url: '/qualification/qualificationType/importType',
    data
  })
}